﻿<%@ Page Title="" Language="C#" MasterPageFile="~/App_Master/AdminMaster2.master" AutoEventWireup="true" CodeFile="my_news_list.aspx.cs" Inherits="my_news_list" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="apply">
  <div class="apply2">
   <%--<uc_left_m:left_menu ID="left_m1" runat="server" />--%>
    <div class="myul_r">
      <div class="mod_pad4">
<div class="hd_admin"><em class="ulimg_admin"><%=strtitle%></em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<%if (1 < classid && classid < 8)
                  {%>
<a href="my_new_img_add.aspx?t=ad&c_id=<%=classid %>">添加</a>
<%}
                  else
                  { %>
<a href="my_new_edit.aspx?t=ad&c_id=<%=classid %>">添加</a>
                <%} %>
</div>
<div class="admin_tab_box1">
          <div class="clear"></div>
       <div class="coupons">
            <table class="w top20" width="1060" border="0" cellspacing="0" cellpadding="0">
              <tr class="t">
              <td width="70" class="c">标题</td>
                <td width="160" class="c">内容</td>             
                <td width="50" class="c">操作</td>
              </tr>            
              <%if (tzlist != null && tzlist.Count > 0)
                { %>
                <%for (int k = 0; k < tzlist.Count; k++)
                  { %>
              <tr >
                <td><%=NtHelp.subtitle(tzlist[k].Title,11)%></td>
                <td ><%=NtHelp.subtitle(tzlist[k].Contents,5)%></td>              
                <td>
                <%if (1 < classid && classid < 8)
                  {%>
                  <a href="my_new_img_edit.aspx?t=edit&c_id=<%=classid %>&eid=<%=tzlist[k].id%>" >编辑</a>
                <%}
                  else
                  { %>
                <a href="my_new_edit.aspx?t=edit&c_id=<%=classid %>&eid=<%=tzlist[k].id%>" >编辑</a>
                <%} %>
                &nbsp;&nbsp;<a href="javascript:delthe('<%=tzlist[k].id%>');" >删除</a></td>
              </tr>
              <%} %>
              <%}
                else
                { %>
             <tr>
                <td colspan='3'><div class='no_data'>^_^&nbsp;&nbsp;没有符合条件的数据！</div></td>
              </tr> 
              <%} %>             
            </table>
          </div>
          <div class="clear"></div>
        </div>
      </div>
    </div>
    <div class="clear"></div>
  </div>
  <div class="clear"></div>
</div>
<script language="javascript" type="text/javascript">
    function delthe(id) {
        if (confirm("删除后不能恢复！确定要将此删除？")) {
            jQuery.ajax({
                url: "/Ajax/Otsql.ashx",
                data: { t: 'delete_thenews', long_eid: id },
                type: "POST",
                success: function (data) {
                    if (data + '' == 'True' || data + '' == 'true') {
                        alert("删除成功!");
                        window.location.reload();
                    } else {
                        alert('删除失败，请检查!');
                    }
                }
            });

        }
    }
</script>
</asp:Content>